@extends('admin.layouts.app')
@section('css')
  <link href="{{asset('assets/plugins/responsive-table/css/rwd-table.min.css')}}" rel="stylesheet" type="text/css" media="screen">
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                               

								<h4 class="page-title">Responsive Table</h4>
								<ol class="breadcrumb">
									<li>
										<a href="#">Ubold</a>
									</li>
									<li>
										<a href="#">Tables</a>
									</li>
									<li class="active">
										Responsive Table
									</li>
								</ol>
							</div>
						</div>
						
						
						
						<div class="row">
							<div class="col-sm-12">
								<div class="card-box">

									<div class="row">
			                        	<div class="col-sm-8">
			                        		<form role="form">
			                                    <div class="form-group contact-search m-b-30">
			                                    	<input type="text" id="search" class="form-control" placeholder="Search..." name="keyword" value="{{array_get($param,'keyword')}}">
			                                        <button type="submit" class="btn btn-white"><i class="fa fa-search"></i></button>
			                                    </div> <!-- form-group -->
			                                </form>
			                        	</div>
			                        	<!-- <div class="col-sm-4">
<button  class="btn btn-default btn-md waves-effect waves-light m-b-30 addModal" data-animation="fadein"                          	data-overlaySpeed="200" data-overlayColor="#36404a"><i class="md md-add"></i> 添加</button>
			                        	</div> -->
			                        </div>
@include('admin.common.error')

									<div class="table-rep-plugin">
										<div class="table-responsive" >
											<table  class="table  table-striped">
												<thead>
													<tr>
														<th>ID</th>
														
														<th>订单号</th>
														<th>用户</th>
														<th>用户电话</th>
														<th>所属商铺</th>
														<th>商户电话</th>
														<th>操作</th>
														
													</tr>
												</thead>
												<tbody>
                        @foreach($list as $v)  
						<tr>
							<th>{{$v->id}}</th>														
							<td>{{object_get($v,'order.code')}}</td>
							<td>{{object_get($v,'user.name')}}</td>
							<td>{{object_get($v,'user.phone')}}</td>
							<td>{{object_get($v,'shop.name')}}</td>
							<td>{{object_get($v,'shop.phone')}}</td>
														
														
					<td>
						<a href="{{url('zadmin/customer-service/'.$v->id.'/edit')}}" class="btn btn-primary btn-sm">
						<span class="btn-label">
										<i class="md md-edit"></i>
										</span>备注</a>

				<a class="btn btn-sm btn-danger" href="{{url('zadmin/customer-service',$v->id)}}" data-method="delete" 
  data-token="{{csrf_token()}}" data-confirm="确定删除吗?">
<span class="btn-label">
  <i class="md md-close"></i>
</span>删除</a>
													   </td>
														
													</tr>
                        @endforeach
													
												</tbody>
											</table>
										</div>
{{$list->links()}}
									</div>

								</div>
							</div>
						</div>
						


				<div id="add-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                                    <h4 class="modal-title" id="myModalLabel">添加</h4>
                                                </div>
                                             <form class="form-horizontal" role="form" method="post" action="{{url('zadmin/spec')}}">  
                                             {{csrf_field()}}  
                                                <div class="modal-body">
                                                                                       
	                                            <div class="form-group">
	                                                <label class="col-md-2 control-label">规格名</label>
	                                                <div class="col-md-10">
	                                                    <input type="text" class="form-control" value="" name="name">
	                                                </div>
	                                            </div>     
                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-default waves-effect" data-dismiss="modal">关闭</button>
                                                    <button type="submit" class="btn btn-primary waves-effect waves-light">提交</button>
                                                </div>
                                            </form>
                                            </div><!-- /.modal-content -->
                                        </div><!-- /.modal-dialog -->
                                    </div><!-- /.modal -->

 @endsection 
               
         

    @section('js')
    <script type="text/javascript">
    	$('.addModal').on('click',function(){
    		$('#add-modal').modal('show');
    	});
    </script> 
       
    @endsection    

